package com.libraryManage.mapper;

import com.libraryManage.entity.LoginLogDo;
import com.libraryManage.entity.ManagerDo;

import java.util.List;

public interface ManagerDoMapper {
    int deleteByPrimaryKey(String id);

    int insert(ManagerDo record);

    int insertSelective(ManagerDo record);

    ManagerDo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ManagerDo record);

    int updateByPrimaryKey(ManagerDo record);

    List<ManagerDo> findAll();

    /**
     * 创建登录日志
     * @param loginfo
     * @return
     */
    Integer createLoginLog(LoginLogDo loginfo);

    /**
     * 获取登录日志
     * @param loginLogDo
     * @return
     */
    List<LoginLogDo> getLogData(LoginLogDo loginLogDo);
}
